package com.poptap.base.domain;

import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Company extends BaseEntity {
	
	private static final long serialVersionUID = -2401653590783076115L;

	private String name;
	
	private String establishYear;
	
	@DBRef
	private Nature nature;
	
	@DBRef
	private Industry industry;
	
	@DBRef
	private Region region;
	
	private String contactPersion;
	
	private String position;
	
	private String tel;
	
	private String fax;
	
	private String email;
	
	private boolean isValidEmail;
	
	private String address;
	
	private CompanyType type;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEstablishYear() {
		return establishYear;
	}

	public void setEstablishYear(String establishYear) {
		this.establishYear = establishYear;
	}

	public Nature getNature() {
		return nature;
	}

	public void setNature(Nature nature) {
		this.nature = nature;
	}

	public Industry getIndustry() {
		return industry;
	}

	public void setIndustry(Industry industry) {
		this.industry = industry;
	}

	public Region getRegion() {
		return region;
	}

	public void setRegion(Region region) {
		this.region = region;
	}

	public String getContactPersion() {
		return contactPersion;
	}

	public void setContactPersion(String contactPersion) {
		this.contactPersion = contactPersion;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isValidEmail() {
		return isValidEmail;
	}

	public void setValidEmail(boolean isValidEmail) {
		this.isValidEmail = isValidEmail;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public CompanyType getType() {
		return type;
	}

	public void setType(CompanyType type) {
		this.type = type;
	}
}
